using System;
using System.Collections.Generic;
using System.Text;

namespace SharpMud.Server.Systems.Scripting.Processing
{
    public interface IScriptCompileResults
    {
        IScriptCompileMessage[] GetCompileMessages();
        int GetMessageTypeCount(ScriptCompileMessageType messageType);

        bool WasSuccessful { get;}

        ICompiledScriptHandle CompiledScriptHandle { get;}
    }

    public interface IScriptCompileMessage
    {
        string ErrorText { get;}
        string ErrorNumber { get;}
        ScriptCompileMessageType MessageType { get;}
        int Line { get;}
        int Column { get;}
    }

    public enum ScriptCompileMessageType
    {
        Error=2,
        Warning=1,
        Information=0,
        Other = -1
    }
}